<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- jqGrid组件基础样式包-必要 -->
<link rel="stylesheet" href="../../jqgrid/css/ui.jqgrid.css" />

<!-- jqGrid主题包-非必要 -->
<!-- 在jqgrid/css/css这个目录下还有其他的主题包，可以尝试更换看效果 -->
<link rel="stylesheet"
	href="../../jqgrid/css/css/redmond/jquery-ui-1.8.16.custom.css" />
<script type="text/javascript">  

    jQuery.jgrid.no_legacy_api = true;  

</script>

<!-- jquery插件包-必要 -->
<!-- 这个是所有jquery插件的基础，首先第一个引入 -->
<script type="text/javascript" src="../../js/jquery-1.7.1.js"></script>

<!-- jqGrid插件包-必要 -->
<script type="text/javascript"
	src="../../jqgrid/js/jquery.jqGrid.src.js"></script>

<!-- jqGrid插件的多语言包-非必要 -->
<!-- 在jqgrid/js/i18n下还有其他的多语言包，可以尝试更换看效果 -->
<script type="text/javascript"
	src="../../jqgrid/js/i18n/grid.locale-cn.js"></script>
<script type="text/javascript" src="../../js/jquery-ui.js"></script>

<title></title>

<!-- 本页面初始化用到的js包，创建jqGrid的代码就在里面 -->
<script type="text/javascript" src="../../gridJs/companyGrid.js"></script>
<!-- zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz -->
<link rel="stylesheet" type="text/css" href="../../css/css2.css" />
<link rel="stylesheet" type="text/css" href="../../css/ui.css" />
<style type="text/css">
body {
	margin: auto;
}

#newID {
	font-size: 20px;
	color: #666666;
	font-weight: bold;
}

#bc {
	background-color: #4dcff6;
	border: none;
	color: white;
	width: 125px;
	height: 40px;
	border-radius: 5px;
	margin-left: 800px;
}

#qx {
	background-color: #ef7476;
	border: none;
	color: white;
	width: 125px;
	height: 40px;
	border-radius: 5px;
	margin-left: 800px;
}
</style>
<script type="text/javascript">
	function addCompany(){
		var url ="/editCompany?oper=add";
		var data = $("#addCompany").serialize();
		$.get(url,data,function(res){
			if(res.status==1){
				alert("保存成功");
			}else{
				alert("保存失败");
			}
		},"json");
	}
	
	</script>

<!-- zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz -->

</head>
<body>
	<div>

		<table id="list2"></table>
		<div id="pager2"></div>
		<br>
	</div>
	<!--显示隐藏添加员工-->
	<div class="shade_content_add shade_content"
		style="display: none; width: 60%; background-color: white;">
		<div class="col-xs-12 shade_colse">
			<button onclick="javascript:onclick_close();">x</button>
		</div>
		<div class="nav shade_content_div"
			style="OVERFLOW-Y: auto; OVERFLOW-X: hidden;&gt;
				&lt;p id="newID">
			<span id="ts1"></span>
			</p>
			<form id="addCompany">
				<table>
					<tr>
						<td><span class="sp1"> 公司编号
						</span> <input type="text" name="CompanyCode" id="CompanyCode" value=""
							class="input" placeholder="1-10" /></td>
						<td><span class="sp1" > 公司名称
						</span> <input type="text" name="CompanyName " id="CompanyName" value=""
							class="input" /></td>
					</tr>
					<tr>
						<td><span class="sp1" > 英文名称
						</span> <input type="text" name="CompanyEngName" id="CompanyEngName"
							value="" class="input" /></td>
						<td><span class="sp1" > 上级编码
						</span> <input type="text" name="ParentId" id="ParentId" value=""
							class="input" /></td>
					</tr>
					<tr>
						<td><span class="sp1" > 编码级别
						</span> <input type="text" name="CodeLevel" id="CodeLevel" value=""
							class="input" /></td>
						<td><span class="sp1" > 末级标志
						</span> <input type="text" name="EndFlag" id="EndFlag" value=""
							class="input" /></td>
					</tr>
					<tr>
						<td><span class="sp1"> 负责人
						</span> <input type="text" name="Principal" id="Principal" value=""
							class="input" /></td>
						<td><span class="sp1" > 电话 </span>

							<input type="text" name="TelePhone" id="TelePhone" value=""
							class="input" /></td>
					</tr>
					<tr>
						<td><span class="sp1" > 传真 </span>

							<input type="text" name="Fax" id="Fax" value="" class="input" />
						</td>
						<td><span class="sp1" > 地址 </span>

							<input type="text" name="Address" id="Address" value=""
							class="input" /></td>
					</tr>
					<tr>
						<td><span class="sp1"> 网址 </span>

							<input type="text" name="Website" id="Website" value=""
							class="input" /></td>
						<td><span class="sp1"> 使用标志
						</span> <input type="text" name="Active" id="contract_over_date" value=""
							class="input" /></td>
					</tr>
					 <tr>
						<td><input type="button" value="保存" id="bc" style="margin-left: 50px"
							onclick="addEmployee()" />
						<input type="button" value="取消" id="qx" style="margin-left: 50px"
							onclick="javascript:onclick_close(); " /></td>
					</tr> 
				</table>
			

			</form>
		</div>
	</div>
<div class="shade_content_detail shade_content"
		style="display: none; width: 60%; background-color: white;">
		<div class="col-xs-12 shade_colse">
			<button onclick="javascript:onclick_close();">x</button>
		</div>
		<div class="nav shade_content_div"
			style="OVERFLOW-Y: auto; OVERFLOW-X: hidden;&gt;
				&lt;p id="newID">
			<span id="ts1"></span>
			</p>
		
				<table>
					<tr>
						<td><span class="sp1" style="margin-left: 30px;" > 公司编号
						</span><span id="companycode" class="detail"></span>
							</td>
						<td><span class="sp1" style="margin-left: 30px;"> 公司名称
						</span> <span id="companyname" class="detail"></span></td>
					</tr>
					<tr>
						<td><span class="sp1" style="margin-left: 30px;"> 英文名称
						</span> <span id="companyengname" class="detail"></span> </td>
						<td><span class="sp1" style="margin-left: 30px;"> 上级编码
						</span> <span id="parentid" class="detail"></span></td>
					</tr>
					<tr>
						<td><span class="sp1" style="margin-left: 30px;"> 编码级别
						</span><span id="codelevel" class="detail"></span>	</td>
						<td><span class="sp1" style="margin-left: 30px;"> 末级标志
						</span><span id="endflag" class="detail"></span>	</td>
					</tr>
					<tr>
						<td><span class="sp1" style="margin-left: 15px;"> 负责人
						</span><span id="principal" class="detail"> </td>
						<td><span class="sp1" style="margin-left: 45px;" > 电话 </span>
<span id="telephone" class="detail"></span>	
							</td>
					</tr>
					<tr>
						<td><span class="sp1" style="margin-left: 30px;"> 传真 </span>

						<span id="fax" class="detail"></span>	
						</td>
						<td><span class="sp1" style="margin-left: 30px;"> 地址 </span>
<span id="adress" class="detail"></span></td>
					</tr>
					<tr>
						<td><span class="sp1" style="margin-left: 30px;"> 网址 </span>
<span id="website" class="detail"></span></td>
						<td><span class="sp1" style="margin-left: 30px;"> 使用标志
						</span><span id="active" class="detail"></span></td>
					</tr>
					
				</table>
			

		
		</div>
	</div>
</body>
</html>